package com.example.boot.modules.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.starter.mybatis.anntation.CreatedBy;
import com.example.starter.mybatis.base.MultiTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 *
 * @author 王令
 * @since 2022-08-05
 */
@Data
@EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName(value = "sys_role")
public class Role extends MultiTenantEntity {

    /**
     * 角色名
     */
    private String name;

    /**
     * 角色编码
     */
    private String code;

    @CreatedBy
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

}
